import {createRouter, createWebHistory} from 'vue-router'

const routes = [{
    path: '/',
    redirect: '/login'
},
    {
        path: '/login',
        name: 'login',
        component: () => import('@/view/user/login.vue')
    },
    {
        path: '/register',
        name: 'register',
        component: () => import("@/view/user/register.vue")
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
